﻿using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using UcAsp.Net.IDAL;
using UcAsp.Net.Interface;
using UcAsp.Net.Model;

namespace UcAsp.Net.BLL
{
    public class AttachementFileBLL
    {
        private static readonly IAttachementFileDAL dal = DALFactory.DataAccess.CreateAttachementFile();
        public AttachementFile GetFileByMd5(string md5)
        {
            return dal.GetFileByMd5(md5);
        }
        public AttachementFile GetFileByFileId(int fileid)
        {
            return dal.GetFileByFileId(fileid);
        }
        public List<UcAsp.Net.Model.AttachementFile> GetFileByRelatedId(int relatedid)
        {
            return dal.GetFileByRelatedId(relatedid);
        }
        public AttachementFile Insert(UcAsp.Net.Model.AttachementFile model)
        {
            return dal.Insert(model);
        }
        public bool  Upate(UcAsp.Net.Model.AttachementFile model)
        {
            return dal.Update(model);
        }
    }
}
